export function getPhoneNumberInfo() {
    return new Promise((resolve, reject) => {
        my.getPhoneNumber({
            success: (res1) => {
                try {
                    const encryptedData = JSON.parse(res1.response);
                    resolve(encryptedData.response);
                } catch (e) {
                    reject(new Error('解析手机号数据失败'));
                }
            },
            fail: (err) => {
                uni.showToast({ title: '获取手机号失败', icon: 'none' });
                reject(err);
            }
        });
    });
}